//
//  FKNetworkingDownloadModel.m
//  FKNetWorking
//
//  Created by 云眼科技 on 16/7/18.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//

#import "FKNetworkingDownloadModel.h"


#pragma mark - Defines the consts of the description of the state

#pragma mark --> English
NSString *const FKStateDescriptionStart_EN     = @"start";
NSString *const FKStateDescriptionWaiting_EN   = @"waiting..";
NSString *const FKStateDescriptionRunning_EN   = @"running";
NSString *const FKStateDescriptionContinue_EN  = @"continue";
NSString *const FKStateDescriptionSuspend_EN   = @"suspend";
NSString *const FKStateDescriptionCompleted_EN = @"completed";
NSString *const FKStateDescriptionFailed_EN    = @"failed";

#pragma mark --> Chinese
NSString *const FKStateDescriptionStart_CH     = @"开始";
NSString *const FKStateDescriptionWaiting_CH   = @"等待中...";
NSString *const FKStateDescriptionRunning_CH   = @"下载中";
NSString *const FKStateDescriptionSuspend_CH   = @"暂停";
NSString *const FKStateDescriptionContinue_CH  = @"继续";
NSString *const FKStateDescriptionCompleted_CH = @"完成";
NSString *const FKStateDescriptionFailed_CH    = @"失败";

#pragma mark - ===============> progress model <===============

@implementation FKNetworkingProgressModel
@end

@implementation FKNetworkingDownloadModel


-(instancetype)initWithResourceURLString:(NSString *)URLString{
    
    self = [super init];
    if (self) {
        _fileName = URLString.lastPathComponent;
        _resumeData = [NSData data];
        _downloadDate = [NSDate date];
        _progressModel = [[FKNetworkingProgressModel alloc] init];
        _resourceURLString = URLString;
    }
    return self;
}










@end
